package com.smooth.site.sx.pc.job.enums;

public enum ApplyJobStatus {
	
	
	applying(1, "申请中"),
	applyfailed(-1, "申请失败"),
	applysuccess(2, "申请成功"),
	
	compsend(4, "企业发起"),
	compsendaccept(5, "接受"),
	compsendrefuse(6, "放弃"),
	
	offerCreated(8,"offer已生成"),
	;

	public Integer value;
	public String name;

	ApplyJobStatus(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public static ApplyJobStatus getStatus(Integer value) {
		if (value != null) {
			ApplyJobStatus[] otypes = ApplyJobStatus.values();
			for (ApplyJobStatus memberType : otypes) {
				if (value.equals(memberType.value)) {
					return memberType;
				}
			}
		}
		return null;
	}
}
